﻿using System;

namespace GameLibrary
{
    [Serializable]
    public class Bias
    {
        public BuildRatio Build { get; set; }
        public float WarSpendingInTotalIncome { get; set; }
    }
    
    /// <summary>
    /// Represent Ratio amoung build connection(road), goods production and army production.
    /// </summary>
    [Serializable]
    public struct BuildRatio
    {
        public float Connection;
        public float Goods;
        public float Armament;
        public float Labor;
        public float Scout;
    //    public double SciTechDevelopment;
        public BuildRatio(
            float connection = 1, 
            float goods = 10, 
            float armament = 5,
            float labor = 1,
            float scout = 1
            )//,float sciTech = 1)
        {
            float total = connection + goods + armament + labor + scout;// +sciTech;
            this.Connection = connection / total;
            this.Goods = goods / total;
            this.Armament = armament / total;
            this.Labor = labor / total;
            this.Scout = scout / total;
         //   this.SciTechDevelopment = sciTech / total;
        }
    }
}
